package com.xiaoshuidi.cloud.module.rooms.convert.roomhouse;

import com.xiaoshuidi.cloud.module.rooms.controller.admin.roomhouse.vo.NoConcentratedRoomInfoDto;
import com.xiaoshuidi.cloud.module.rooms.pojo.Apartment;
import com.xiaoshuidi.cloud.module.rooms.pojo.RoomHouse;
import com.xiaoshuidi.cloud.module.rooms.vo.RoomHouseRespVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author hans.zhang
 */
@Mapper
public interface RoomHouseConvert {
    RoomHouseConvert INSTANCE = Mappers.getMapper(RoomHouseConvert.class);

    RoomHouse convert(Apartment apartment);

    List<RoomHouseRespVo> convert(List<RoomHouse> roomHouses);

    RoomHouseRespVo convert(RoomHouse roomHouse);

    RoomHouse convert(NoConcentratedRoomInfoDto slaveRoomHouse);
}
